package model

import "github.com/jinzhu/gorm"

type User struct {
	gorm.Model
	Name      string `gorm:"type:varchar(20);not null"`
	Telephone string `gorm:"varchar(11);not null;unique"`
	Password  string `gorm:"size:255;not null"`
}

type Student struct {
	Stu_id       string `form:"id" gorm:"varchar(10)"`
	Stu_name     string `form:"name" gorm:"varchar(32)"`
	Stu_password string `form:"password" gorm:"varchar(32)"`
	Stu_class    string `form:"class" gorm:"varchar(32)"`
	Stu_level    string `form:"level" gorm:"varchar(9)"`
	Stu_type     string `form:"type" gorm:"varchar(10)"`
	Stu_date     string `form:"date" gorm:"varchar(32)"`
}

type Qustions struct {
	Qustion_id      string `form:"id" gorm:"varchar(32)"`
	Qustion_context string `form:"context" gorm:"text"`
	Qustion_a       string `form:"a" gorm:"text"`
	Qustion_a_c     string `form:"a_c" gorm:"varchar(32)"`
	Qustion_b       string `form:"b" gorm:"text"`
	Qusiton_b_c     string `form:"b_c" gorm:"varchar(32)"`
}

type Types struct {
	Type_id   string `form:"id" gorm:"type:int"`
	Type_name string `form:"name" gorm:"varchar(10)"`
	Type_ch   string `form:"ch" gorm:"text"`
	Type_en   string `form:"en" gorm:"text"`
	Type_weak string `form:"weak" gorm:"text"`
	Type_adv  string `form:"adv" gorm:"text"`
	Type_fie  string `form:"fie" gorm:"text"`
	Type_pro  string `form:"pro" gorm:"text"`
}

type Result struct {
	E      int
	I      int
	S      int
	N      int
	T      int
	F      int
	J      int
	P      int
	Output string
}
